package com.hdl.service.impl;

import com.hdl.pojo.User;
import com.hdl.service.IHelloService;

import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;

/**
 * 类名 HelloServiceImpl
 * 描述 TODO
 *
 * @author hedonglin
 * @version 1.0
 * @date 2020/6/9 12:28
 */
public class HelloServiceImpl extends UnicastRemoteObject implements IHelloService {
    public HelloServiceImpl() throws RemoteException {
    }


        public String sayHello(User user) throws RemoteException {
        System.out.println("this is server, received params username is :" + user.getUsername());
        return "success";
    }
}
